{$header}
<servicelist>
  {loop $infos $k $info}
  <service id="{$info['vid']}">
    <key>/{$info['vid']}</key>
    <source>
      <url>{$info['url']}</url>
      <mode>{$info['mod']}</mode>
      <stype>{$info['stype']}</stype>
      <transcoder>{$info['transcoder']}</transcoder>
      <tspath>{if ($info['ists'])}/data/timeshift/{$info['vid']}/{/if}</tspath>
      <epgdelay>{$info['epgdelay']}</epgdelay>
      <acsize>{$info['acsize']}</acsize>
      <startflag>auto</startflag>
    </source>
  </service>
  {if ($info['urllow'])}
  <service id="{$info['vid']}low">
    <key>/{$info['vid']}low</key>
    <source>
      <url>{$info['urllow']}</url>
      <mode>{$info['mod']}</mode>
      <stype>{$info['stype']}</stype>
      <transcoder>{$info['transcoder']}</transcoder>
      <tspath>{if ($info['ists'])}/data/timeshift/{$info['vid']}low/{/if}</tspath>
      <epgdelay>{$info['epgdelay']}</epgdelay>
      <acsize>{$info['acsize']}</acsize>
      <startflag>auto</startflag>
    </source>
  </service>
  {/if}
  {/loop}
</servicelist>